Skip to content

dgb(Phase-B): SSOT expected-time-to-block diagnostic + non-circular KAT - #390

Merged
frstrtr merged 1 commit into
masterfrom
dgb/etb-ssot
Jun 23, 2026
Merged

dgb(Phase-B): SSOT expected-time-to-block diagnostic + non-circular KAT#390
frstrtr merged 1 commit into
masterfrom
dgb/etb-ssot

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 23, 2026

Copy link
Copy Markdown
Owner

What

Lifts the final expected-time-to-block arithmetic out of node.cpp diagnostics into a header-only SSOT, src/impl/dgb/expected_time_to_block.hpp:

etb_secs = average_attempts / real_pool_hs   // with uint64-overflow 1e18 sentinel

Same pattern as the merged-track pool_efficiency.hpp lift (#389). The bits -> target -> average_attempts conversion stays at the call site on the already-verified chain:: SSOTs; this captures only the final combine + sentinel.

Oracle

p2pool-dgb-scrypt main.py status loop: format_dt(2**256 / target / real_att_s) == average_attempts(target) / real_att_s.

Fenced / consensus-neutral

Test

dgb_expected_time_to_block_test7/7 green, non-circular (oracle expression recomputed independently). Registered in the dgb test CMakeLists and BOTH build.yml --target allowlist arms (no #143 NOT_BUILT trap).

GPG-signed @ 19f9fb7.

Lift the final expected-time-to-block arithmetic (etb_secs =
average_attempts / real_pool_hs, with the uint64-overflow 1e18 sentinel)
out of node.cpp diagnostics into a header-only SSOT,
expected_time_to_block.hpp, mirroring the pool_efficiency.hpp lift. The
bits->target->average_attempts conversion stays at the call site on the
existing chain SSOTs; this captures only the final combine + sentinel.

FENCED: dgb/ only, header-only (<cstdint>), consensus-neutral pure
arithmetic. node.cpp NOT yet rewired (the byte-identity delegation that
folds real-hashrate + get_stale_counts + this is the follow-on).

KAT is non-circular (oracle expression recomputed independently vs the
p2pool main.py status loop). 7/7 green. Registered in the dgb test
CMakeLists and BOTH build.yml --target allowlist arms.
@frstrtr
frstrtr merged commit 438de7d into master Jun 23, 2026
32 checks passed
@frstrtr
frstrtr deleted the dgb/etb-ssot branch June 23, 2026 23:12
frstrtr added a commit that referenced this pull request Jun 24, 2026
dgb: delegate heartbeat_log diagnostics arithmetic to #389/#390 SSOTs (byte-id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant